FROM ubuntu:18.04
RUN apt-get update
RUN apt-get upgrade --assume-yes
RUN apt-get install --assume-yes perl  mc re2c g++ g++-multilib wget  sudo  python3 python3-pip

ARG user=test

RUN useradd --create-home --no-log-init --shell /bin/bash ${user} \
    && adduser ${user} sudo \
    && echo "${user}:1" | chpasswd

RUN apt-get install --assume-yes   \
			bison gcc make build-essential libc6-dev-i386 libncurses-dev \
			coreutils diffstat  chrpath cpio  gawk sed  texi2html texinfo unzip flex bc  \
			python3-setuptools rsync swig unzip zlib1g-dev file wget \
			gcc-multilib g++-multilib gettext git libncurses5-dev   \
			libssl-dev  clang g++  dos2unix python  python-pip  curl 

RUN update-alternatives --install /usr/bin/python  python /usr/bin/python2   3

RUN python -m pip install   --upgrade  pip

RUN pip install pyhocon

USER  ${user}

